{% extends 'base.html.twig' %}
{% import 'Import/app_import.html.twig' as appImport %}

{% block head_title %}{{ 'index_templates'|trans }} - {{ template.name }} - {{ 'mappings'|trans }}{% endblock %}

{% block heading_1 %}
    {{ appImport.heading({'level': 1, 'title': 'index_templates'|trans, 'link': {'url': path('index_templates')}}) }}
{% endblock %}

{% block heading_2 %}
    {{ appImport.heading({'level': 2, 'title': template.name}) }}
{% endblock %}

{% block tabs %}
    {% include 'Modules/index_template/index_template_read_tabs.html.twig' with {'active': 'mappings'} %}
{% endblock %}

{% block main_content %}
    {% embed 'Embed/block_embed.html.twig' %}
        {% import 'Import/app_import.html.twig' as appImport %}
        {% block content %}
            {{ appImport.heading({'level': 3, 'title': 'mappings'|trans}) }}

            {% if template.mappings %}
                <pre>{{ template.mappings|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre>
            {% endif %}
        {% endblock %}
    {% endembed %}
{% endblock %}
